package com.edu.mapper;

import com.edu.bean.Book;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookMapper {
    int insertBook(@Param("book") Book book);

    int deleteBookByBookId(int bookId);

    List<Book> selectBookByNameTypeWriter(@Param("book") Book book);

    List<Book> selectAllBooks();

    int updateBook(@Param("book") Book book);
}
